package cn.itcast.nems.studentrecord.dto.studentrecord;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 学籍优惠合计
 * </p>
 *
 * @author zhouwei
 * @since 2023/11/6 4:49 PM
 **/
@Data
@NoArgsConstructor
public class StudentRecordDiscountDTO implements Serializable {
    /**
     * 优惠项ID
     */
    private String discountId ;
    /**
     * 优惠名称
     */
    private String discountName ;
    /**
     * 优惠类型;枚举值：金额|CASH、折扣|DISCOUNT。注：来自于优惠规则的类型
     */
    private String discountType;
    /**
     * 优惠金额
     */
    private BigDecimal discountMoney ;
    /**
     * 操作人
     */
    private String createdBy ;
    /**
     * 创作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createdDatetime;
    /**
     * 排序号
     */
    private Byte sort;
}
